<?php require VIEW_PATH.'/header.php';?>
<body>
<div class="hd-menu-list">
    <ul>
        <li class="active">
        	<a href="#">品牌管理</a>
        </li>
        <li><a href="{{U('add')}}">添加品牌</a></li>
    </ul>
</div>
<table class="hd-table hd-table-list">
    <thead>
    <tr>
        <td>id</td>
        <td>品牌名称</td>
        <td>品牌LOGO</td>
        <td>操作</td>
    </tr>
    </thead>
    <tbody>
    <?php foreach($data as $field):?>
    <tr>
        <td>{{$field['id']}}</td>
        <td>
            {{$field['name']}}
        </td>
        <td>
            <img src="{{$field['logo']}}" style="width:80px;height: 45px">
        </td>
        <td class="hd-w150">
            <a href="{{U('edit',array('id'=>$field['id']))}}">修改</a> |
            <a href="#">删除</a> 
        </td>
    </tr>
<?php endforeach;?>
    </tbody>
</table>
</body>
</html>